function someFunction() external pure returns(string
memory);
}
contract ImplementorContract is SomeInterface1,
SomeInterface2 {
function someFunction(string memory someString) public
override pure returns(string memory) {
return someString;
}
function someFunction() public override pure returns(string
memory) {
return “some message”;
}
}
A. No issue at all. It would get compiled and the second
someFunction function would run to give “some message” in
response
B. It would throw a compilation error as ImplementorContract
can’t implement two interfaces at a time
C. It would throw a compilation error as both interfaces have a
function of the same name and ImplementorContract can’t take
a decision on which one to implement
D. It would throw a compilation error as ImplementorContract
does not implement SomeInterface1
Q94: What is true for a contract that is destroyed?
A. Transactions will fail
B. Any funds sent to the contract will be lost
C. By default, the contract can be destroyed only by the creator
D. Both A and B
Q95: There are two contracts named A and B where B instantiates
A. Choose the correct answer.
A. It’s a mandate to deploy both A and B before running them